CREATE TABLE [dbo].[TTARUB_FINA]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_ARUB] [dbo].[TD_VC_003] NOT NULL,
[DE_ARUB] [dbo].[TD_VC_100] NULL,
[ST_REPO] [dbo].[TD_VC_001_SINO] NULL CONSTRAINT [DF__TTARUB_FI__ST_RE__71FCD09A] DEFAULT ('N'),
[NU_ORDE] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TTARUB_FI__NU_OR__73E5190C] DEFAULT ((0)),
[ST_FLUJ_ECON] [dbo].[TD_VC_001_SINO] NULL CONSTRAINT [DF__TTARUB_FI__ST_FL__74D93D45] DEFAULT ('N'),
[ST_FLUJ_FINA] [dbo].[TD_VC_001_SINO] NULL CONSTRAINT [DF__TTARUB_FI__ST_FL__75CD617E] DEFAULT ('N'),
[ST_SALD_INIC] [dbo].[TD_VC_001_SINO] NULL CONSTRAINT [DF__TTARUB_FI__ST_SA__76C185B7] DEFAULT ('N'),
[ST_DETA] [dbo].[TD_VC_001_SINO] NULL CONSTRAINT [DF__TTARUB_FI__ST_DE__77B5A9F0] DEFAULT ('N'),
[ST_TOTA] [dbo].[TD_VC_001_SINO] NULL CONSTRAINT [DF__TTARUB_FI__ST_TO__78A9CE29] DEFAULT (getdate()),
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTARUB_FI__CO_US__799DF262] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTARUB_FI__FE_US__7A92169B] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTARUB_FI__CO_US__7B863AD4] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTARUB_FI__FE_US__7C7A5F0D] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTARUB_FINA] WITH NOCHECK ADD CONSTRAINT [CK__TTARUB_FI__ST_RE__72F0F4D3] CHECK NOT FOR REPLICATION (([ST_REPO]='N' OR [ST_REPO]='S'))
GO
ALTER TABLE [dbo].[TTARUB_FINA] ADD CONSTRAINT [PK__TTARUB_F__AC850F00534E2C48] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_ARUB]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTARUB_FINA] ADD CONSTRAINT [FK__TTARUB_FI__CO_EM__39AE55D6] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
